﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using mal.WP7.Framework.Controls;
using Microsoft.Phone.Shell;
using Mal.WP7.TimeClock.Resources;

namespace Mal.WP7.TimeClock
{
    public partial class MainPage : NavigatePhoneApplicationPage
    {
        #region Fields
        private const int AboutButtonIndex = 0;
        #endregion

        #region Construction / Destruction
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(this.MainPage_Loaded);
        }
        #endregion

        #region enum, struct, class

        #endregion

        #region Properties

        #endregion

        #region Methods

        #endregion

        #region Events
        // Load data for the ViewModel Items
        private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {    
            ((ApplicationBarMenuItem)this.ApplicationBar.MenuItems[AboutButtonIndex]).Text = ResourceText.MainPageAboutButton;

        }

        private void OnAboutButtonClick(object sender, EventArgs e)
        {
            NavigationService.Navigate(new Uri("/AboutPage.xaml", UriKind.Relative));
        }
        #endregion
    }
}